import request from '@/utils/request'

// 查询定制单管理列表
export function listCustomization(query) {
  return request({
    url: '/system/customization/list',
    method: 'get',
    params: query
  })
}

// 查询定制单管理详细
export function getCustomization(customId) {
  return request({
    url: '/system/customization/' + customId,
    method: 'get'
  })
}

// 新增定制单管理
export function addCustomization(data) {
  return request({
    url: '/system/customization',
    method: 'post',
    data: data
  })
}

// 修改定制单管理
export function updateCustomization(data) {
  return request({
    url: '/system/customization',
    method: 'put',
    data: data
  })
}

// 删除定制单管理
export function delCustomization(customId) {
  return request({
    url: '/system/customization/' + customId,
    method: 'delete'
  })
}
